import React, { Suspense } from 'react';
import Spin from './loading';

interface IProps {
  children: React.ReactChildren
}
export default ({children}:IProps) => (
  <Suspense fallback={<Spin/>}>
    {children}
  </Suspense>
);
